package org.leiyang.common.entities;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.relational.core.mapping.Table;

@Data
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Table("user")
public class User {
    @Id
    private Long id;

    /**
     * 注: 用户名不能包含@字符
     */
    private String username;

    private String password;

    private Integer sex;

    /**
     * 头像图片url
     */
    private String avater;
}